﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace SSE693WebService
{
    /// <summary>
    /// Summary description for HelloWebService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class HelloWebService : System.Web.Services.WebService
    {
        private String firstName{ get; set; }
        private String lastName{ get; set; }

        [WebMethod]
        public string Hello()
        {   
            return   "Hello World";
        }

        [WebMethod]
        public string HelloThere(string firstName, string lastName)
        {
            return string.Format("Hello {0} {1}!", firstName, lastName);
        }

        
        

    }
}
